package com.example.demo.Controller;

import com.example.demo.Entity.Dian;
import com.example.demo.Mapper.DianMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class DianController {
    @Resource
    DianMapper dianMapper;

    @RequestMapping("/dian")
    public List<Dian> getDian(){
        return dianMapper.finAlls();
    }
}
